import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('TagNovel controller test group', () {
    final MockTagNovelPresenter presenter = MockTagNovelPresenter();
    final controller = MockTagNovelController(presenter);
    test("should execute normal when invoke getNovelListByTagNovelIds",
        () async {
      await controller.getNovelListByClassifyIds(1);
      await Future.doWhile(() => presenter.flag = false);
      expect(presenter.novelList, isNotEmpty);
    });
  });
}
